package com.example.web.websocket.entity;

import java.io.Serializable;

/**
 * 消息-接收对象
 */
public class ReceiveObject implements Serializable {
    // 来源
    private String sourceKey;
    // 目标group
    private String toGroup;
    // 目标key
    private String toKey;
    // 信息JSON字符串
    private String data;


    public String getSourceKey() {
        return sourceKey;
    }

    public void setSourceKey(String sourceKey) {
        this.sourceKey = sourceKey;
    }

    public String getToGroup() {
        return toGroup;
    }

    public void setToGroup(String toGroup) {
        this.toGroup = toGroup;
    }

    public String getToKey() {
        return toKey;
    }

    public void setToKey(String toKey) {
        this.toKey = toKey;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
